package factory.simpleFactory;/** * Created by Administrator on 2018-10-22. */public class PizzaStore {   SimplePizzaFactory factory;   public  PizzaStore(SimplePizzaFactory factory){       this.factory =factory;   }   public Pizza orderPizza(String type){       Pizza pizza;       pizza = factory.createPizza(type);       pizza.bake();       pizza.prepare();       pizza.cut();       pizza.box();       return pizza;   }}